/**
 * Simple class for standard command buttons.
 *
 * @author Andrey Anisimov <hercules@inbox.ru>
 * @see core.ui.ImageButton
 */

import core.ui.InputWindow;

class Button extends InputWindow {

	/**
	 * Creates new button control.
	 * 
	 * @param parent (Window) [optional] parent window
	 * @param x, y (int) [optional] coordinates
	 * @param width, height (int) [optional] button size.
	 */	
	this.Button = function(parent, x, y, width, height) {
		super(parent, x, y, width, height);
		this.getElement().setAttribute('unselectable', 'on');
	}
	
	/**
	 * @protected
	 * Gets type of input element.
	 * @return string
	 */
	this.getType = function() {
		return 'button';
	}
}